<li class="task-item" id="task<?php echo $task->getId()?>">
	<label>
		<input type="checkbox" name="complete_task" id="complete_task_<?php echo $task->getId() ?>"  
			value="<?php echo $task->getId() ?>" class="complete_task_box"										
			<?php echo $task->getStatus() == TaskPeer::COMPLETED ? 'checked="checked"' : ''?> />
		<span class="category" title="<?php echo $task->getDescription() ?>"><?php echo $task->getName() ?></span>
		Assigned to <?php echo render_profile_link($task->getUserRelatedByUserId())?>
		<span class="due">Due: <?php echo $task->getDueDate('m/d/Y') ?></span>
	</label>
	<?php if($task->getResource() == TaskPeer::NOTE_RESOURCE): ?>
		<?php if($task->getResourceId()): ?>
			<span><?php echo link_to('View Notes &raquo;', 'notes/show?task_id='.$task->getId().'&id='.$task->getResourceId(), 'class="view-notes"') ?></span>
		<?php else: ?>
			<span><?php echo link_to('Write Notes &raquo;', 'notes/new?task_id='.$task->getId().'&course_id='.$task->getCourseId(), 'class="view-notes"') ?></span>
		<?php endif?>
	<?php endif ?>
	<span>										
		<?php echo image_tag('ajax-loader_small.gif', 
				array('id' => 'task_loading_'.$task->getId(), 'style' => 'display: none;')) ?>
		<span id="status_update_<?php echo $task->getId() ?>" style="display: none;"></span>
		
	</span>
	
	<br/>
	<div>
	<?php if($sf_user->isGroupAdmin($group->getId()) || $sf_user->isGroupContributor($group->getId())): ?>
				<?php echo link_to('Edit', 'tasks/edit?id='.$task->getId().'&isAjax=true', 
					'id="taskEdit'.$task->getId().'" class="task-edit" onclick="editTask('.$task->getId().')"')?>
					|
				<?php echo link_to('Volunteer', 'tasks/assign?id='.$task->getId().'&isAjax=true', 
					'id="taskAssign'.$task->getId().'" class="task-edit" onclick="assignTask('.$task->getId().')"')?>
	<?php endif ?>
	</div>
	<div style="display: none;" id="taskEditForm<?php echo $task->getId() ?>">
		
	</div>
</li>